Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
h-ohta committed Mar 15, 2024
1 parent 2b8ea8e commit 0d08096
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/sync-tier4-upstream-up-to-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: $BASE_BRANCH
ref: ${{ vars.BASE_BRANCH }}
fetch-depth: 0

- name: Set git config
Expand All @@ -37,7 +37,7 @@ jobs:

- name: Sync tag
run: |
git remote add sync-target $SYNC_TARGET_REPOSITORY
git remote add sync-target ${{ vars.SYNC_TARGET_REPOSITORY }}
git fetch -pPtf --all
git reset --hard "${{ inputs.sync-target-tag }}"
git remote rm sync-target
Expand All @@ -47,7 +47,7 @@ jobs:
id: generate-changelog
uses: autowarefoundation/autoware-github-actions/generate-changelog@v1
with:
git-cliff-args: origin/$BASE_BRANCH..HEAD
git-cliff-args: origin/${{ vars.BASE_BRANCH }}..HEAD
- name: Replace PR number to URL
id: replace-pr-number-to-url
run: |
Expand All @@ -59,15 +59,15 @@ jobs:
echo "$EOF" >> $GITHUB_OUTPUT
env:
CHANGELOG: ${{ steps.generate-changelog.outputs.changelog }}
REPO_URL: $SYNC_TARGET_REPOSITORY
REPO_URL: ${{ vars.SYNC_TARGET_REPOSITORY }}
shell: bash

- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-token.outputs.token }}
base: $BASE_BRANCH
base: ${{ vars.BASE_BRANCH }}
branch: sync-tier4-upstream-${{ inputs.sync-target-tag }}
title: "chore: sync upstream up to ${{ inputs.sync-target-tag }}"
body: ${{ steps.replace-pr-number-to-url.outputs.changelog }}
Expand All @@ -88,4 +88,4 @@ jobs:
run: gh pr merge --merge --auto "${{ steps.create-pr.outputs.pull-request-number }}"
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.token }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 comments on commit 0d08096

Please sign in to comment.