Skip to content

Commit

Permalink
ci: Fix shellcheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Nov 7, 2023
1 parent b34c023 commit 4a89371
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/reset-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Tag the last head revision
id: backup
run: |
tag="${{ github.base_ref }}-backup-$(date +%Y%m%d%H%M%S)"
tag="${{ github.base_ref }}-backup-$(date +'%Y%m%d%H%M%S')"
git tag "$tag" "$(git rev-parse HEAD~1)"
echo "tag=$tag" >> $GITHUB_OUTPUT
echo "tag=$tag" >> "$GITHUB_OUTPUT"
- name: Push the tag
uses: ad-m/github-push-action@master
Expand All @@ -37,7 +37,9 @@ jobs:

- name: Reset
run: |
git reset --hard ${{ github.head_ref }}
git reset --hard "$rev"
env:
rev: ${{ github.head_ref }}

- name: Push the resetted branch
uses: ad-m/github-push-action@master
Expand Down

0 comments on commit 4a89371

Please sign in to comment.