chore(deps): update actions/create-github-app-token action to v1.10.2 #212
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
name: release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tagpr: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
issues: read | |
outputs: | |
tag: ${{ steps.tagpr.outputs.tag }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install aqua | |
uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1 | |
with: | |
aqua_version: v2.29.0 | |
- name: Generate token | |
id: generate_token | |
uses: actions/create-github-app-token@ad38cffc07bac6e3857755914c4c88bfd2db4da4 # v1.10.2 | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.PRIVATE_KEY }} | |
- name: Run tagpr | |
id: tagpr | |
run: tagpr | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
release: | |
runs-on: ubuntu-latest | |
needs: [tagpr] | |
if: needs.tagpr.outputs.tag != '' | |
permissions: | |
contents: write | |
outputs: | |
tag: ${{ steps.tagpr.outputs.tag }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install aqua | |
uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1 | |
with: | |
aqua_version: v2.29.0 | |
- name: Get tag | |
run: git pull --tags | |
- name: Generate token | |
id: generate_token | |
uses: actions/create-github-app-token@ad38cffc07bac6e3857755914c4c88bfd2db4da4 # v1.10.2 | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.PRIVATE_KEY }} | |
- name: Run goreleaser | |
run: goreleaser release --clean | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} |