Skip to content

Commit

Permalink
Merge pull request #3613 from mitulshah-suse/move-to-gha-1.6
Browse files Browse the repository at this point in the history
Fix tokens for gh cli invocations
  • Loading branch information
mitulshah-suse authored Jun 21, 2024
2 parents 31586de + 6e74955 commit 61e8a5c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ jobs:
- name: Create pre-release
run: |
gh release create ${{ github.ref_name }} -p --verify-tag --title "Pre-release ${{ github.ref_name }}" --notes-file build/bin/rke-k8sversions.txt build/bin/rke*
env:
GH_TOKEN: ${{ github.token }}

github-release:
permissions:
Expand All @@ -106,6 +108,8 @@ jobs:
- name: Create release
run: |
gh release create ${{ github.ref_name }} --verify-tag --title "Release ${{ github.ref_name }}" --notes-file build/bin/rke-k8sversions.txt build/bin/rke*
env:
GH_TOKEN: ${{ github.token }}

dispatch:
permissions:
Expand Down Expand Up @@ -140,5 +144,6 @@ jobs:
exit 0
esac
echo "Running on $ACTION_TARGET_BRANCH"
echo ${{ env.PAT_TOKEN }} | gh auth login --with-token
gh workflow run "Go get" --repo rancher/rancher --ref $ACTION_TARGET_BRANCH -F goget_module=github.com/rancher/rke -F goget_version=${{ github.ref_name }} -F source_author=${{ github.actor }}
gh workflow run "Go get" --repo rancher/rancher --ref $ACTION_TARGET_BRANCH -F goget_module=github.com/rancher/rke -F goget_version=${{ github.ref_name }} -F source_author=${{ github.actor }}
env:
GH_TOKEN: ${{ env.PAT_TOKEN }}

0 comments on commit 61e8a5c

Please sign in to comment.