Skip to content

Commit f0699a2

Browse files
committed
ci: tag deployments with the commit and the workflow run
1 parent f3b30a4 commit f0699a2

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/workflows/compat-check.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,4 +250,7 @@ jobs:
250250
with:
251251
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
252252
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
253-
command: deploy
253+
# Shown in the dashboard's version list: which commit, and which workflow run shipped it.
254+
command: >-
255+
deploy --tag "${{ github.sha }}"
256+
--message "${{ github.workflow }} #${{ github.run_number }}: ${{ github.event.head_commit.message || github.ref_name }}"

‎.github/workflows/deploy.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ jobs:
4545
with:
4646
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4747
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
48-
command: deploy
48+
# Shown in the dashboard's version list: which commit, and which workflow run shipped it.
49+
command: >-
50+
deploy --tag "${{ github.sha }}"
51+
--message "${{ github.workflow }} #${{ github.run_number }}: ${{ github.event.head_commit.message || github.ref_name }}"

0 commit comments

Comments
 (0)