Skip to content

Commit 30b4932

Browse files
authored
Make cron job to create a tag (#5)
1 parent 3616209 commit 30b4932

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.github/workflows/build.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
tags:
99
- '*'
1010
workflow_dispatch:
11-
schedule:
12-
# Run at 00:00 UTC on the 1st, 10th, and 20th of every month
13-
- cron: '0 0 1,10,20 * *'
1411

1512
concurrency:
1613
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -102,8 +99,7 @@ jobs:
10299
needs: [build]
103100
if: >-
104101
github.repository == 'pyodide/pyodide-build-environment-nightly' &&
105-
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) ||
106-
(github.event_name == 'schedule')
102+
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags'))
107103
permissions:
108104
# Required to sign the attestations
109105
id-token: write
@@ -127,11 +123,7 @@ jobs:
127123
id: release_version
128124
shell: bash
129125
run: |
130-
if [[ ${{ github.event_name }} == 'schedule' ]]; then
131-
echo "release_version=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
132-
else
133-
echo "release_version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
134-
fi
126+
echo "release_version=${{ github.ref_name }}" >> $GITHUB_OUTPUT
135127
136128
cat $GITHUB_OUTPUT
137129

.github/workflows/create-tag.yml

Whitespace-only changes.

0 commit comments

Comments
 (0)