Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Using workflow name
  • Loading branch information
Keboo authored Jan 5, 2023
commit 2a4c9de61fb3a9ea433ea8e0c25ae95f7a2dbf8c
6 changes: 3 additions & 3 deletions .github/workflows/nightly_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
runs-on: ubuntu-latest

outputs:
should_run: ${{ steps.check_tag.outputs.has_changed }}
should_run: ${{ steps.check_for_changes.outputs.has_changed }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- id: check_tag
- id: check_for_changes
name: Check nightly_release tag
run: |
$workflowList = gh run list --workflow "${{ github.action }}" --branch "${{ github.ref_name }}" --json databaseId --limit 1
$workflowList = gh run list --workflow "${{ github.workflow }}" --branch "${{ github.ref_name }}" --json databaseId --limit 1
$runId = ($workflowList | ConvertFrom-Json)[0].databaseId
$nightlyReleaseHash = ((gh run view $runId --json headSha) | ConvertFrom-Json).headSha

Expand Down