Merge pull request #43 from seehase/feature/github_actions #1
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-master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: fetch version Label | |
run: | | |
echo The PR was merged | |
git checkout master | |
HEAD_VERSION=$( grep 'version = 1' skins/neowx-material/skin.conf | cut -d '"' -f 2 ) | |
echo "DIST_VERSION=${HEAD_VERSION}" >> $GITHUB_ENV | |
echo New label: $HEAD_VERSION | |
- name: Create Tag | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const {DIST_VERSION} = process.env | |
github.rest.git.createRef({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
ref: `refs/tags/${DIST_VERSION}`, | |
sha: context.sha | |
}) |