aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/tag-repos.yml
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-07-01 05:30:27 +0530
committerLibravatar GitHub <noreply@github.com>2022-07-01 00:00:27 +0000
commit1912425b21f8a93c62f3da7099a9af8cf39942dd (patch)
tree2b2795574cd99544557257d75bca5d5e5fb825de /.github/workflows/tag-repos.yml
parentFeature: Copy Ferdium info from the 'About' dialog into the clipboard (#402) (diff)
downloadferdium-app-1912425b21f8a93c62f3da7099a9af8cf39942dd.tar.gz
ferdium-app-1912425b21f8a93c62f3da7099a9af8cf39942dd.tar.zst
ferdium-app-1912425b21f8a93c62f3da7099a9af8cf39942dd.zip
Moved tagging of the repo from the nightly build process to the post-publishing process [skip ci] (#404)
Diffstat (limited to '.github/workflows/tag-repos.yml')
-rw-r--r--.github/workflows/tag-repos.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/tag-repos.yml b/.github/workflows/tag-repos.yml
new file mode 100644
index 000000000..a8459c1e6
--- /dev/null
+++ b/.github/workflows/tag-repos.yml
@@ -0,0 +1,35 @@
1name: Tag all repos
2
3on:
4 release:
5 types: [published]
6 # Manual trigger from the UI
7 workflow_dispatch:
8
9jobs:
10 bump-casks:
11 runs-on: macos-latest
12 steps:
13 - name: Checkout code along with submodules for the 'nightly' branch if the trigger event is 'scheduled'
14 uses: actions/checkout@v3
15 if: ${{ contains(github.event.release.tag_name, 'nightly') }}
16 with:
17 ref: nightly
18 submodules: recursive
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'
21 uses: actions/checkout@v3
22 if: ${{ !contains(github.event.release.tag_name, 'nightly') }}
23 with:
24 ref: release
25 submodules: recursive
26 fetch-depth: 0 # Note: Needed to be able to pull the 'develop' branch as well for merging
27 - name: Tag the branch
28 run: |
29 TAG_NAME=$(node -p 'require("./package.json").version')
30 git tag -f $TAG_NAME
31 git push origin --tags --no-verify
32 # Also tag the submodule so as to help identify which changes went into which nightly release
33 # TODO: Not working due to cross-repo access issues by the github-action bot
34 # git -C recipes tag -f $TAG_NAME
35 # git -C recipes push origin --tags --no-verify