Skip to content

Commit

Permalink
ci: Force push tag v1
Browse files Browse the repository at this point in the history
Fixup the build + commit on PRs
  • Loading branch information
kgilpin authored Aug 23, 2023
1 parent 83f263c commit 6f53a33
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: yarn install

- name: Install AppMap tools
uses: getappmap/install-action@v1.0
uses: getappmap/install-action@v1
with:
tools-url: https://github.com/getappmap/appmap-js/releases/download/%40appland%2Fappmap-faster-v1.0-pre.2/appmap-linux-x64
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -51,12 +51,16 @@ jobs:
head-revision: ${{ github.event.pull_request.head.sha }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Build GitHub action
run: yarn package

- name: Commit changes
# If you forgot to package the distribution, you'll see a commit added to your PR
if: github.event_name == 'pull_request'
uses: EndBug/add-and-commit@v7
with:
add: dist
message: 'chore: Packaged distribution of the GitHub action'

- uses: rickstaa/action-create-tag@v1
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
tag: v1
force_push_tag: true

0 comments on commit 6f53a33

Please sign in to comment.