-
Notifications
You must be signed in to change notification settings - Fork 651
35 lines (32 loc) · 945 Bytes
/
tag.yml
File metadata and controls
35 lines (32 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Tag commits
permissions:
contents: write
on:
schedule:
# Run everyday at: https://crontab.guru/#0_6_*_*_*.
- cron: '0 6 * * *'
workflow_dispatch:
jobs:
tag-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Get devtools version
id: devtools_version
shell: bash
run: ./scripts/devtools_version.sh
- name: Create tag
uses: actions/github-script@v8
# This can fail if the tag exists but this is expected.
continue-on-error: true
env:
TAG: ${{ steps.devtools_version.outputs.tag }}
with:
github-token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
script: |
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/' + process.env.TAG,
sha: context.sha
});