diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-07-01 09:05:07 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-07-01 09:05:07 +0530 |
commit | 8899872bc51820a319d6875c64be42799344b4ad (patch) | |
tree | 6f413e895c0110f929e6eb2233f34e779fcd304f /.github/workflows/tag-repos.yml | |
parent | 6.0.0-nightly.84 [skip ci] (diff) | |
download | ferdium-app-8899872bc51820a319d6875c64be42799344b4ad.tar.gz ferdium-app-8899872bc51820a319d6875c64be42799344b4ad.tar.zst ferdium-app-8899872bc51820a319d6875c64be42799344b4ad.zip |
Trying to check if tagging of submodule works [skip ci]
Diffstat (limited to '.github/workflows/tag-repos.yml')
-rw-r--r-- | .github/workflows/tag-repos.yml | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/.github/workflows/tag-repos.yml b/.github/workflows/tag-repos.yml index a8459c1e6..794b031bc 100644 --- a/.github/workflows/tag-repos.yml +++ b/.github/workflows/tag-repos.yml | |||
@@ -7,29 +7,39 @@ on: | |||
7 | workflow_dispatch: | 7 | workflow_dispatch: |
8 | 8 | ||
9 | jobs: | 9 | jobs: |
10 | bump-casks: | 10 | tag-repos: |
11 | runs-on: macos-latest | 11 | runs-on: macos-latest |
12 | steps: | 12 | steps: |
13 | - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled' | 13 | - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'release' |
14 | uses: actions/checkout@v3 | 14 | uses: actions/checkout@v3 |
15 | if: ${{ contains(github.event.release.tag_name, 'nightly') }} | 15 | if: ${{ contains(github.event.release.tag_name, 'nightly') || (github.event_name == 'workflow_dispatch') }} |
16 | with: | 16 | with: |
17 | ref: nightly | 17 | ref: nightly |
18 | submodules: recursive | 18 | submodules: recursive |
19 | fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging | 19 | fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging |
20 | - name: Checkout code along with submodules for the 'release' branch if the trigger event is 'scheduled' | 20 | - name: Checkout code along with submodules for the 'release' branch if the trigger event is 'release' |
21 | uses: actions/checkout@v3 | 21 | uses: actions/checkout@v3 |
22 | if: ${{ !contains(github.event.release.tag_name, 'nightly') }} | 22 | if: ${{ !contains(github.event.release.tag_name, 'nightly') }} |
23 | with: | 23 | with: |
24 | ref: release | 24 | ref: release |
25 | submodules: recursive | 25 | submodules: recursive |
26 | fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging | 26 | fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging |
27 | - name: Tag the branch | 27 | - name: Extract Git tag name from the currently checked out branch (not from the branch where this run was kicked off) |
28 | run: | | 28 | run: | |
29 | TAG_NAME=$(node -p 'require("./package.json").version') | 29 | TAG_NAME=$(node -p 'require("./package.json").version') |
30 | echo "TAG_NAME=v$TAG_NAME" >> $GITHUB_ENV | ||
31 | shell: bash | ||
32 | - name: Tag the main repo | ||
33 | run: | | ||
30 | git tag -f $TAG_NAME | 34 | git tag -f $TAG_NAME |
31 | git push origin --tags --no-verify | 35 | git push origin --tags --no-verify |
32 | # Also tag the submodule so as to help identify which changes went into which nightly release | 36 | shell: bash |
33 | # TODO: Not working due to cross-repo access issues by the github-action bot | 37 | # Also tag the submodule so as to help identify which changes went into which release |
34 | # git -C recipes tag -f $TAG_NAME | 38 | # TODO: Not working due to cross-repo access issues by the github-action bot |
35 | # git -C recipes push origin --tags --no-verify | 39 | # - name: Tag the submodule |
40 | # env: | ||
41 | # GH_TOKEN: ${{ secrets.FERDIUM_RECIPES_PUBLISH_TOKEN }} | ||
42 | # run: | | ||
43 | # git -C recipes tag -f $TAG_NAME | ||
44 | # git -C recipes push origin --tags --no-verify | ||
45 | # shell: bash | ||