Skip to content

Commit

Permalink
ci: Fix release workflow again
Browse files Browse the repository at this point in the history
[release]
  • Loading branch information
bbhtt committed Oct 30, 2024
1 parent d88915c commit 50e8318
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,20 @@ on:
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'flathub-infra/flatpak-builder-lint' && github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[release]') }}
if: ${{ github.event.workflow_run.conclusion == 'success' && github.repository == 'flathub-infra/flatpak-builder-lint' && github.ref == 'refs/heads/master' }}
steps:
- uses: actions/checkout@v4
with:
ref: 'master'

- name: Check last commit message
run: |
if git log -1 --pretty=%B|xargs|grep -E "\[release\]"; then
echo "IS_RELEASE=true" >> "$GITHUB_ENV"
fi
- name: Check if docker-manifest succeeded
if: env.IS_RELEASE == 'true'
run: |
job_status=$(gh run view ${{ github.event.workflow_run.id }} --json jobs --jq '.jobs[] | select(.name=="docker-call / docker-manifest") | .conclusion')
echo "Status: $job_status"
Expand Down

0 comments on commit 50e8318

Please sign in to comment.