Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force update master tag #89

Merged
merged 1 commit into from
Jan 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci_updated_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,19 @@ jobs:
git tag -af -F "MASTER_TAG_MSG.txt" master
rm -f MASTER_TAG_MSG.txt

- name: Assert no commit changes occured
run: |
if [ "$(git rev-parse HEAD)" != "$(git rev-parse origin/${{ env.DEFAULT_REPO_BRANCH }})" ]; then
echo "The current commit is NOT the same as the latest commit of '${{ env.DEFAULT_REPO_BRANCH }}'."
echo " HEAD: $(git rev-parse HEAD)"
echo " origin/${{ env.DEFAULT_REPO_BRANCH }}: $(git rev-parse origin/${{ env.DEFAULT_REPO_BRANCH }})"
exit 1
fi

- name: Push updated tag
uses: ./
with:
token: ${{ secrets.CI_RESET_TEST_BRANCHES }}
branch: ${{ env.DEFAULT_REPO_BRANCH }}
force: true
tags: true