diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml deleted file mode 100644 index 24e1af8..0000000 --- a/.github/workflows/auto-release.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: auto-release - -on: - push: - branches: - - main - - master - - production - -jobs: - publish: - runs-on: ubuntu-latest - permissions: - # write permission is required to create a github release - contents: write - # write permission is required for autolabeler - # otherwise, read permission is required at least - pull-requests: write - steps: - # Get PR from merged commit to master - - uses: actions-ecosystem/action-get-merged-pull-request@v1 - id: get-merged-pull-request - - # Drafts your next Release notes as Pull Requests are merged into "main" - - uses: release-drafter/release-drafter@v5 - with: - publish: ${{ !contains(steps.get-merged-pull-request.outputs.labels, 'no-release') }} - prerelease: false - config-name: auto-release.yml - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-branch.yml b/.github/workflows/release-branch.yml index 51ed31d..e949ce6 100644 --- a/.github/workflows/release-branch.yml +++ b/.github/workflows/release-branch.yml @@ -87,6 +87,12 @@ jobs: release-controller: runs-on: ubuntu-latest needs: [ci-readme, ci-codeowners] + permissions: + # write permission is required to create a github release + contents: write + # write permission is required for autolabeler + # otherwise, read permission is required at least + pull-requests: write steps: - name: Checkout uses: actions/checkout@v3 @@ -118,6 +124,8 @@ jobs: publish: ${{ (github.ref_name == 'main' || github.ref_name == 'master') && !contains(steps.get-pull-request.outputs.pr_labels, 'no-release') }} config-name: 'auto-release.yml' commitish: ${{ github.ref_name }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Verify release # Workaround for https://github.com/release-drafter/release-drafter/issues/1313 if: steps.check-duplicate.outputs.duplicate == 'false' diff --git a/profile/README.md b/profile/README.md index 2805c62..3fe0bfa 100644 --- a/profile/README.md +++ b/profile/README.md @@ -1,3 +1,4 @@ -[![Banner](./banner/image.png?raw=true)](https://cpco.io/homepage) + +[![Banner](https://github.com/cloudposse-github-actions/.github/blob/main/profile/banner/image.png?raw=true)](https://cpco.io/homepage)