Skip to content

Commit

Permalink
Remove ${{ }} syntax in if statements
Browse files Browse the repository at this point in the history
Noticed an error when this action was run even though the actor wasnt
matching. According to actions/runner#1173,
you should be really careful when using ${{ }} inside if statements.
  • Loading branch information
havardholvik committed Jan 16, 2024
1 parent 8a150a0 commit a463c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dependabot_pr_to_linear_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
dependabot-pr-to-linear-issue:
name: "Dependabot PR to Linear issue"
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'opened' && github.actor == ${{ inputs.actor }}
if: github.event_name == 'pull_request' && github.event.action == 'opened' && github.actor == inputs.actor
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Create issue
uses: whereby/github-actions/.github/actions/create-linear-issue@main
uses: whereby/github-actions/.github/actions/create-linear-issue@1.0.0
with:
api-key: ${{ secrets.linear_api_key }}
team-id: ${{ inputs.linear_team_id }}
Expand Down

0 comments on commit a463c48

Please sign in to comment.