Skip to content

Commit

Permalink
👷 Fix make release (#3276)
Browse files Browse the repository at this point in the history
  • Loading branch information
je-cook committed May 14, 2024
1 parent 6d64073 commit 9b6f12b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/actions/dependencies_PR/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ inputs:

runs:
using: "composite"
env:
GITHUB_TOKEN: ${{ inputs.token }}
steps:
- name: Rebase develop_dependencies
env:
GITHUB_TOKEN: ${{ inputs.token }}
shell: bash -l {0}
run: |
# Rebase develop_dependencies on develop, so that it's up-to-date and
# we don't run into conflicts next time we merge.
Expand All @@ -23,6 +24,9 @@ runs:
git push --force-with-lease origin develop_dependencies:develop_dependencies
- name: Create PR to update dependencies
env:
GITHUB_TOKEN: ${{ inputs.token }}
shell: bash -l {0}
run: |
PR_URL=$(gh pr create \
--head develop_dependencies \
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/actions/permission_check/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ inputs:
type: string


jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Permissions Test
env:
GITHUB_TOKEN: ${{ inputs.token }}
shell: bash
run: |
runs:
using: "composite"
steps:
- name: Permissions Test
env:
GITHUB_TOKEN: ${{ inputs.token }}
shell: bash
run: |
role_type="$(gh api /orgs/${{ github.repository_owner }}/memberships/${{ github.actor }} --jq '.role')"
if [[ $role_type != 'admin' ]]; then
exit 1
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/dependencies_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ on:

jobs:
dep_pr:
runs-on: ubuntu-latest
steps:
- name: Permissions Check
uses: ./.github/workflows/actions/permission_check
with:
token: ${{ secrets.FPPF_BOT_AUTH_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.FPPF_BOT_AUTH_KEY }}
- name: Permissions Check
uses: ./.github/workflows/actions/permission_check
with:
token: ${{ secrets.FPPF_BOT_AUTH_KEY }}
- name: Open develop_dependencies PR
uses: ./.github/workflows/actions/dependencies_PR
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Permissions Check
uses: ./.github/workflows/actions/permission_check
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.FPPF_BOT_AUTH_KEY }}

- name: Checkout
uses: actions/checkout@v4
- name: Permissions Check
uses: ./.github/workflows/actions/permission_check
with:
token: ${{ secrets.FPPF_BOT_AUTH_KEY }}

Expand Down

0 comments on commit 9b6f12b

Please sign in to comment.