name: Auto-tag release
on:
pull_request:
types: [closed]
branches: [main]
jobs:
auto-tag:
if: github.event.pull_request.merged && contains(github.event.pull_request.labels.*.name, 'release')
runs-on: ubuntu-latest
steps:
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 with:
app-id: ${{ secrets.RELEASE_APP_ID }}
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
token: ${{ steps.app-token.outputs.token }}
- uses: tylerbutler/actions/changie-auto-tag@c4c45a8284082163bc58623acfc4b3dc98633c3d id: auto-tag
with:
create-release: true
token: ${{ steps.app-token.outputs.token }}