This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
Merge pull request #51 from climatepolicyradar/fo-dependabot #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag Package | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tag-pull-requests-and-merges-to-main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "CPR Tech Team" | |
- name: List Tags Pre-tag | |
run: | | |
git tag -l | |
- name: Tag | |
run: | | |
git tag -a ${GITHUB_REF##*/}-${GITHUB_SHA::8} -m "Tagging ${GITHUB_REF##*/} in CI/CD." | |
- name: Push the tag | |
run: | | |
git push origin ${GITHUB_REF##*/}-${GITHUB_SHA::8} | |
- name: List Tags Post-tag | |
run: | | |
git tag -l |