Skip to content

Commit

Permalink
push.yml update (token modify) (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: Lee Sungjin <[email protected]>
  • Loading branch information
yhm1620 and sodyn99 authored May 31, 2024
1 parent fb757bc commit abf1cbe
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ jobs:
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" \
-H "Authorization: Bearer ${{ secrets.GH_ONOS_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/releases \
-d '{
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_TOKEN }}
token: ${{ secrets.GH_ONOS_PAT }}
commit-message: Update version
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
Expand All @@ -224,16 +224,16 @@ jobs:
add-paths: |
VERSION
branch-release:
runs-on: ubuntu-latest
needs: tag-github
if: (needs.tag-github.outputs.changed == 'true') && (needs.tag-github.outputs.release_branch == 'true')
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: actions/checkout@v4

- uses: peterjgrainger/[email protected]
with:
branch: "rel-${{ needs.tag-github.outputs.version_branch }}"
sha: '${{ github.event.pull_request.head.sha }}'
# branch-release:
# runs-on: ubuntu-latest
# needs: tag-github
# if: (needs.tag-github.outputs.changed == 'true') && (needs.tag-github.outputs.release_branch == 'true')
# env:
# GITHUB_TOKEN: ${{ secrets.GH_ONOS_PAT }}
# steps:
# - uses: actions/checkout@v4
#
# - uses: peterjgrainger/[email protected]
# with:
# branch: "rel-${{ needs.tag-github.outputs.version_branch }}"
# sha: '${{ github.event.pull_request.head.sha }}'

0 comments on commit abf1cbe

Please sign in to comment.