Skip to content

Commit db1cf35

Browse files
committed
ci: auto-bumping tag when specific file updates
Signed-off-by: Camber Huang <[email protected]>
1 parent 01c46cf commit db1cf35

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/periodic-update.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,25 @@ jobs:
2727
2828
- name: Push
2929
uses: JamesIves/github-pages-deploy-action@v4
30+
id: deploy-file
3031
with:
3132
branch: master
3233
folder: .
3334
git-config-name: github-actions[bot]
3435
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
3536
commit-message: updated ${{ steps.current-time.outputs.formattedTime }} UTC
37+
38+
- name: tagging-get-current-time
39+
if: ${{ steps.deploy-file.outputs.deployment-status == 'success' }}
40+
uses: srfrnk/current-time@master
41+
id: current-time-tagging
42+
with:
43+
format: "YYYYMMDD"
44+
45+
- name: tagging
46+
if: ${{ steps.deploy-file.outputs.deployment-status == 'success' }}
47+
uses: anothrNick/[email protected]
48+
env:
49+
CUSTOM_TAG: ${{ steps.current-time-tagging.outputs.formattedTime }}
50+
DEFAULT_BRANCH: master
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)