Skip to content

Commit 4f338f7

Browse files
committed
workflow_dispatch release fix
1 parent 10bb74c commit 4f338f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish_release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
check_date:
3434
runs-on: ubuntu-latest
3535
outputs:
36-
should_run: ${{ env.SHOULD_RUN }}
36+
should_run: ${{ steps.should_run.outputs.should_run }}
3737
steps:
3838
- uses: actions/checkout@v2
3939
- name: print latest_commit
@@ -42,10 +42,10 @@ jobs:
4242
- id: should_run
4343
continue-on-error: true
4444
name: check latest commit is less than a day
45-
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "SHOULD_RUN=false" >> $GITHUB_ENV
45+
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
4646
publish_release:
4747
needs: check_date
48-
if: ${{ github.event_name == 'workflow_dispatch' || env.SHOULD_RUN != 'false' }}
48+
if: ${{ github.event_name == 'workflow_dispatch' || needs.check_date.outputs.should_run != 'false' }}
4949
runs-on: ubuntu-latest
5050
container: maven:3-eclipse-temurin-8
5151
steps:

0 commit comments

Comments
 (0)