Skip to content

Commit

Permalink
bug: fix github.event_name error (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey authored Oct 12, 2023
1 parent daf0ee3 commit f6e5547
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/reusable_dockerfile_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
id: setting_logic
run: |
# yamllint disable
echo "build_for_pr=${{ github.event == 'pull_request' }}" >> "$GITHUB_OUTPUT"
echo "build_for_pr=${{ github.event_name == 'pull_request' }}" >> "$GITHUB_OUTPUT"
echo "build_for_merge=${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}" >> "$GITHUB_OUTPUT"
echo "not_a_fork=${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}" >> "$GITHUB_OUTPUT"
# yamllint enable
Expand All @@ -84,8 +84,9 @@ jobs:
steps:
- name: Log logic
run: |
echo "github.event: ${{ github.event }}"
echo "github.event_name: ${{ github.event_name }}"
echo "github.ref: ${{ github.ref }}"
echo "github.event: ${{ toJSON(github.event) }}"
echo "head repo: ${{ github.event.pull_request.head.repo.full_name }}"
echo "base repo: ${{ github.event.pull_request.base.repo.full_name }}"
echo "build_for_pr: ${{ needs.prepare-env.outputs.build_for_pr }}"
Expand Down

0 comments on commit f6e5547

Please sign in to comment.