Add pixel-art icons for Awa + Timber (+ misc. ambassador images) (#67) #27
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 | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
sparse-checkout: package.json | |
- name: Check version | |
id: version | |
run: | | |
set -e -o pipefail | |
BEFORE_VERSION=$(git show "${{ github.event.before }}:package.json" | jq -r .version) | |
AFTER_VERSION=$(git show "${{ github.event.after }}:package.json" | jq -r .version) | |
if [ "$BEFORE_VERSION" != "$AFTER_VERSION" ]; then | |
echo "Version changed from $BEFORE_VERSION to $AFTER_VERSION" | |
echo "version=$AFTER_VERSION" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Tag version | |
if: ${{ steps.version.outputs.version }} | |
run: | | |
set -e -o pipefail | |
git tag "${{ steps.version.outputs.version }}" "${{ github.event.after }}" | |
git push origin "${{ steps.version.outputs.version }}" |