Chore [deps:github-actions]: Bump terraform-linters/setup-tflint from 4.0.0 to 4.1.0 #3808
Workflow file for this run
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 Drafter | |
on: | |
push: | |
branches: | |
- main | |
pull_request_target: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
label_pull_requests: | |
name: "Label pull requests" | |
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target' | |
permissions: | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
github.com:443 | |
- name: "Run auto-labeler" | |
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0 | |
with: | |
disable-releaser: true | |
disable-autolabeler: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
draft_release: | |
name: Create or update next release draft | |
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.github.com:443 | |
github.com:443 | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
show-progress: false | |
persist-credentials: 'false' | |
- name: Get tag of "latest" release | |
id: latest_release | |
run: echo "tag=$(gh release view --json tagName --jq .tagName)" >> $GITHUB_OUTPUT | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Determine next release version" | |
id: next_release | |
run: | | |
chmod +x .github/next_release_version.bash | |
echo "version=$(bash .github/next_release_version.bash $LATEST_TAG)" >> $GITHUB_OUTPUT | |
env: | |
LATEST_TAG: ${{ steps.latest_release.outputs.tag || '' }} | |
- name: "Generate release notes and label pull requests" | |
uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0 | |
with: | |
version: ${{ steps.next_release.outputs.version }} | |
publish: false | |
disable-releaser: false | |
disable-autolabeler: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |