Skip to content

Commit 4761a4f

Browse files
authored
Fix 'project_name' argument used by automerge workflow (#18)
Before this change the automerge workflow tries to fetch the repository name from Github using the `env` context. However, GitHub's automatic environment variables are not placed in the `env` context. This updates the workflow to fetch the information from the corresponding variable in the `github` context instead.
1 parent 5345a06 commit 4761a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/automerge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
git config --local user.name "github-actions[bot]"
2323
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
2424
- name: Run automerge
25-
run: python3 arm-software/ci/automerge.py --project-name ${{ env.GITHUB_REPOSITORY }} --from-branch ${{ env.FROM_BRANCH }} --to-branch ${{ env.TO_BRANCH }}
25+
run: python3 arm-software/ci/automerge.py --project-name ${{ github.repository }} --from-branch ${{ env.FROM_BRANCH }} --to-branch ${{ env.TO_BRANCH }}
2626
env:
2727
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)