Skip to content

Commit

Permalink
Merge pull request #2937 from apalache-mc/igor/ci
Browse files Browse the repository at this point in the history
a first try to fix the release workflow
  • Loading branch information
konnov authored Aug 14, 2024
2 parents 952160f + a1c3a72 commit 9321181
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
- Triggered manually.
- The workflow prepares a release and opens a `[release]` PR.
- **Requirements**:
- A personal API token is required to authenticate the API call that opens the
PR.
- We use a token belonging to our machine user [@apalache-bot][]. apalache-bot
- A personal API token called `APALACHE_BOT_TOKEN` is required to authenticate the API
call that opens the PR.
- We use a token belonging to our machine user [@coffeeinprogress][]. coffeeinprogress
creates the PR from their fork of the repo, and they have no permissions in
this repo itself.
- Secrets are configured [here][secret-config].

[@apalache-bot]: https://github.com/apalache-bot
[secret-config]: https://github.com/informalsystems/apalache/settings/secrets/actions
[@@coffeeinprogress]: https://github.com/coffeeinprogress
[secret-config]: https://github.com/apalache-mc/apalache/settings/secrets/actions

## [./release.yml](./release.yml)

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: prepare-release
on:
workflow_dispatch:
# Allows manually triggering release via
# https://github.com/informalsystems/apalache/actions?query=workflow%3A%22Prepare+Release%22
# https://github.com/apalache-mc/apalache/actions?query=workflow%3A%22Prepare+Release%22
inputs:
release_version:
description: "Version (leave empty to increment patch version)"
Expand All @@ -12,7 +12,7 @@ on:

jobs:
prepare-release:
if: github.repository_owner == 'informalsystems'
if: github.repository_owner == 'apalache-mc'
env:
RELEASE_VERSION: ${{ github.event.inputs.release_version }}
# NOTE: We must not use the default GITHUB_TOKEN for auth here,
Expand All @@ -22,6 +22,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.APALACHE_BOT_TOKEN }}
push-to-fork: coffeeinprogress/apalache
- uses: actions/setup-java@v3
with:
distribution: temurin
Expand Down

0 comments on commit 9321181

Please sign in to comment.