gateway: bump 1Password/load-secrets-action from 2.0.0 to 3.0.0 (#265) #305
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Handle Dependabot update | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/dummy.yml" | |
pull_request: | |
paths: | |
- ".github/workflows/update_actions.yml" | |
- ".github/workflows/dummy.yml" | |
- gateway/* | |
permissions: | |
contents: read | |
# We want workflows on main to run in order to avoid losing data through race conditions | |
concurrency: "${{ github.ref }}-${{ github.workflow }}" | |
jobs: | |
update_actions: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
persist-credentials: true | |
- run: pip install ruyaml | |
- name: Update actions.yml | |
shell: python | |
run: | | |
import sys | |
sys.path.append("./gateway/") | |
import gateway as g | |
g.update_actions(".github/workflows/dummy.yml", "actions.yml") | |
g.update_patterns("approved_patterns.yml", "actions.yml") | |
- name: Commit and push changes | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
git config --local user.name "asfgit" | |
git config --local user.email "[email protected]" | |
git add -f actions.yml approved_patterns.yml | |
git commit -m "Update actions.yml and approved_actions.yml based on .github/workflows/dummy.yml" -m "Generated by .github/workflows/update_actions.yml" || echo "No changes" | |
git push origin |