Skip to content

Commit

Permalink
Diff helper via labels
Browse files Browse the repository at this point in the history
Suddenly labeling permissions don't work? But they work from cli
  • Loading branch information
mosteo committed Jul 8, 2024
1 parent a1c0ae1 commit 165853d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/diff-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

name: Diff release

permissions:
issues: write
pull-requests: write

env:
CHECKS_ORG: alire-project
CHECKS_REPO: alire-index-checks
Expand All @@ -23,7 +27,7 @@ jobs:

steps:
- name: Check out alire-index
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
# Needed to be able to diff and obtain changed files. Furthermore, we
Expand Down Expand Up @@ -51,6 +55,15 @@ jobs:
toolchain: --disable-assistant # We don't need the compiler
branch: master

- name: Debug token
run: |
echo "PAT: ${{ secrets.LABEL_TOKEN }}"
shell: bash

- name: <<DIFF RELEASES>>
run: ${{env.CHECKS_REPO}}/scripts/diff-release.sh || true # No deal breaker if failed
shell: bash
env:
GITHUB_EVENT_PATH: ${{ github.event_path }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.LABEL_TOKEN }} # Needed to apply labels/comment
5 changes: 4 additions & 1 deletion index/li/libhello/libhello-1.0.1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ url = "git+https://github.com/alire-project/libhello.git"

# We use this crate as a trigger to conveniently test minor changes to
# metaprocesses of the CI of the repository itself.
# Last touch: 2024-05-23 17:40 CET
# Last touch: 2024-07-08 11:58 CET

[[depends-on]]
unobtanium = "*"

0 comments on commit 165853d

Please sign in to comment.