Skip to content

Commit

Permalink
Revert "feat(action_integration_test): Add condition to use token fro…
Browse files Browse the repository at this point in the history
…m secrets if available."

This reverts commit e99cc37.
  • Loading branch information
Noahnc committed Nov 30, 2023
1 parent 08820a3 commit e0d55d8
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/action_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Evaluate token to use
id: token
shell: bash
run: |
# Check if the secrets.PAT_GITHUB is set, if not use the default GITHUB_TOKEN
if [ "${{ secrets.PAT_GITHUB }}" != "" ]; then
echo "Secret PAT_GITHUB is set, using it instead of GITHUB_TOKEN"
echo "::set-output name=token::${{ secrets.PAT_GITHUB }}"
else
echo "Secret PAT_GITHUB is not set, actions default token GITHUB_TOKEN"
echo "::set-output name=token::${{ github.token }}"
fi
fi
- name: Run in report only mode
uses: ./
with:
Expand All @@ -39,7 +25,7 @@ jobs:
with:
report_only: false
target_branch_name: "feat/infrapatch_test_${{ github.run_number }}"
github_token: ${{ steps.token.outputs.token }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Check update result
shell: pwsh
Expand Down

0 comments on commit e0d55d8

Please sign in to comment.