Skip to content

Idempotently fetch deps #690

Idempotently fetch deps

Idempotently fetch deps #690

Workflow file for this run

name: Add git tag for release
on:
pull_request:
types:
- closed
jobs:
if_merged:
# name should be e.g. release-v1.2.3
if: ${{ startsWith(github.head_ref, 'release-v') && github.event.pull_request.merged == true }}
runs-on: ubuntu-latest
steps:
- run: |
echo The PR was merged
- name: "Check out repository code"
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.ACTONBOT_DEPLOY_KEY }}
- name: "Get the version"
id: get_version
run: echo ::set-output name=version::$(grep VERSION= common.mk | cut -d = -f 2)
- name: "Add version tag and push"
run: |
git config user.name "Apt Bot"
git config user.email [email protected]
git tag v${{steps.get_version.outputs.version}}
git push origin v${{steps.get_version.outputs.version}}