Skip to content

Commit

Permalink
Update update-samples.yml to use GITHUB_TOKEN (#1536)
Browse files Browse the repository at this point in the history
* Update update-samples.yml to use `GITHUB_TOKEN`

* Update publish-release.yml

* Update prepare-release.yml
  • Loading branch information
kraenhansen committed Mar 4, 2024
1 parent ec58ef4 commit 9671919
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prepare-release.yml
Expand Up @@ -104,4 +104,4 @@ jobs:
draft: false
body: An automated PR for next release.
commit-message: '[Release ${{ steps.update-changelog.outputs.new-version }}]'
token: ${{ secrets.REALM_CI_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Expand Up @@ -206,7 +206,7 @@ jobs:
- name: Merge Pull Request
uses: juliangruber/merge-pull-request-action@8a13f2645ad8b6ada32f829b2fae9c0955a5265d
with:
github-token: ${{ secrets.REALM_CI_PAT }}
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ steps.find-pull-request.outputs.number }}
method: squash

Expand All @@ -218,7 +218,7 @@ jobs:
name: ${{ needs.prepare-packages.outputs.version }}
commit: main
tag: ${{ needs.prepare-packages.outputs.version }}
token: ${{ secrets.REALM_CI_PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
draft: false

- name: 'Post to #realm-releases'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-samples.yml
Expand Up @@ -19,6 +19,6 @@ jobs:
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.REALM_CI_PAT }}" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/realm/realm-dart-samples/actions/workflows/37091855/dispatches \
-d '{"ref":"main","inputs":{"version":"${{steps.release-version.outputs.release }}"}'
-d '{"ref":"main","inputs":{"version":"${{steps.release-version.outputs.release }}"}'

0 comments on commit 9671919

Please sign in to comment.