Merge pull request #1453 from PolicyEngine/bot/weekly-us-update #95
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: 'Deployment step 1: Update versioning' | |
| on: | |
| push: | |
| branches: [ main ] | |
| env: | |
| ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | |
| REGION: us-central1 | |
| SERVICE_NAME: policyengine-household-api | |
| IMAGE_NAME: gcr.io/policyengine-household-api/policyengine-household-api | |
| jobs: | |
| versioning: | |
| name: Update versioning | |
| runs-on: ubuntu-latest | |
| if: | | |
| (github.repository == 'PolicyEngine/policyengine-household-api') | |
| && !(github.event.head_commit.message == 'Update PolicyEngine Household API') | |
| steps: | |
| - name: Generate GitHub App token | |
| id: app-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.12" | |
| - name: Build changelog | |
| run: pip install yaml-changelog && make changelog | |
| - name: Preview changelog update | |
| run: ".github/get-changelog-diff.sh" | |
| - name: Update changelog | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| add: "." | |
| committer_name: Github Actions[bot] | |
| author_name: Github Actions[bot] | |
| message: Update PolicyEngine Household API | |
| github_token: ${{ steps.app-token.outputs.token }} |