Merge pull request #278 from pre-commit-ci/upgrade-pre-commit #642
This file contains 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
on: | |
pull_request: | |
push: | |
branches: [main] | |
permissions: | |
contents: write | |
id-token: write | |
packages: write | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: bin/set-tag >> "$GITHUB_ENV" | |
- run: bin/build "$TAG" | |
- run: bin/test "$TAG" | |
- uses: actions/checkout@v3 | |
with: | |
ref: info | |
token: ${{ secrets.GITHUB_TOKEN }} | |
path: info | |
if: github.event_name != 'pull_request' | |
- uses: pre-commit-ci/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0 | |
with: | |
role-to-assume: ${{ secrets.ECR_DEPLOY_ROLE_ARN }} | |
aws-region: us-east-1 | |
if: github.event_name != 'pull_request' | |
- run: bin/push info "$TAG" | |
env: | |
GHCR_USER: ${{ github.actor }} | |
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: github.event_name != 'pull_request' |