Skip to content

Commit

Permalink
[ci skip] Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Dec 30, 2023
1 parent 33213d7 commit 8697da3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 28 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,22 @@ on:
branches:
- main

permissions:
contents: read

jobs:
dummy:
runs-on: ubuntu-latest
steps:
- run: echo test

tag:
runs-on: ubuntu-latest
needs: dummy
permissions:
contents: write
actions: write

steps:
- uses: actions/checkout@v4

- id: app-token
uses: getsentry/action-github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_KEY }}

- uses: ./
- uses: actions/github-script@v7
with:
github-token: ${{ steps.app-token.outputs.token }}
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'push.yml',
ref: '${{ github.ref }}',
})
11 changes: 0 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,9 @@ on:
tags:
- "*"

permissions:
contents: read

jobs:
dummy:
runs-on: ubuntu-latest
steps:
- run: echo test

tag:
runs-on: ubuntu-latest
needs: dummy
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ./
Expand Down

0 comments on commit 8697da3

Please sign in to comment.