Github action suddenly no longer working
vincejv opened this issue · 1 comments
vincejv commented
Github tag action suddenly stopped working without changing anything in my workflow, and logs are not showing anything useful except error reference update failed. However my other repos using this action still continues to work.
Link to the action that failed: https://github.com/vincejv/fpi-framework/actions/runs/3264804877/jobs/5366063522
Error: Error: Reference update failed
Workflow:
name: Maven Central deployment
on:
push:
branches:
- main
env:
SONAR_PROJECT_KEY: vincejv_fpi-framework
jobs:
pre_job:
name: Duplicate checks
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'docs-update(') }} # skip for commits containing 'docs-update('
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
paths_result: ${{ steps.skip_check.outputs.paths_result }}
steps:
- name: Skip duplicate actions
id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: outdated_runs
cancel_others: true
versioning:
name: Versioning
runs-on: ubuntu-latest
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
outputs:
new_tag: ${{ steps.tag_version.outputs.new_tag }}
changelog: ${{ steps.tag_version.outputs.changelog }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
code_quality_checks:
Debug logs:
##[debug]steps.tag_version.outputs.new_tag='v1.0.145'
Changelog is ### [1.0.145](https://github.com/vincejv/fpi-framework/compare/v1.0.144...v1.0.145) (2022-10-17)
### Bug Fixes
* **pom.xml:** additional maven pom metadata ([7c16f66](https://github.com/vincejv/fpi-framework/commit/7c16f6683bcc1e7c7d137b2a2b74bdd9e6b50340))
* **versioning:** fix versioning workflow error, duplicated tag ([64063f7](https://github.com/vincejv/fpi-framework/commit/64063f[79](https://github.com/vincejv/fpi-framework/actions/runs/3264804877/jobs/5366063522#step:3:80)d89b043729933a9869668bf6f0a1f162))
.
::set-output name=changelog::### [1.0.145](https://github.com/vincejv/fpi-framework/compare/v1.0.144...v1.0.145) (2022-10-17)%0A%0A%0A### Bug Fixes%0A%0A* **pom.xml:** additional maven pom metadata ([7c16f66](https://github.com/vincejv/fpi-framework/commit/7c16f6683bcc1e7c7d137b2a2b74bdd9e6b50340))%0A* **versioning:** fix versioning workflow error, duplicated tag ([64063f7](https://github.com/vincejv/fpi-framework/commit/64063f79d89b043729933a9869668bf6f0a1f162))%0A%0A
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
##[debug]steps.tag_version.outputs.changelog='### [1.0.145](https://github.com/vincejv/fpi-framework/compare/v1.0.144...v1.0.145) (2022-10-17)
##[debug]
##[debug]
##[debug]### Bug Fixes
##[debug]
##[debug]* **pom.xml:** additional maven pom metadata ([7c16f66](https://github.com/vincejv/fpi-framework/commit/7c16f66[83](https://github.com/vincejv/fpi-framework/actions/runs/3264804877/jobs/5366063522#step:3:84)bcc1e7c7d137b2a2b74bdd9e6b50340))
##[debug]* **versioning:** fix versioning workflow error, duplicated tag ([64063f7](https://github.com/vincejv/fpi-framework/commit/64063f79d89b043729933a9869668bf6f0a1f162))
##[debug]
##[debug]'
##[debug]Creating annotated tag.
##[debug]Pushing new tag to the repo.
Error: Reference update failed
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Bump version and push tag
vincejv commented
Sorry, I figured out I change the repository settings and enabled protected tags. Will find a way to make it work with protected tags enabled, closing this issue.