mirror of
https://github.com/kamilchodola/wait-for-workflow-action.git
synced 2026-04-29 15:47:40 -05:00
Merge pull request #11 from kamilchodola/kch/fix_permissions
Fix permissions grant
This commit is contained in:
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
@@ -29,15 +29,14 @@ jobs:
|
||||
ref: "${{ inputs.ref || github.ref }}"
|
||||
|
||||
- name: Wait for the triggered workflow to complete
|
||||
run: |
|
||||
chmod +x scripts/wait-for-workflow.sh
|
||||
export GITHUB_TOKEN="${{ secrets.REPOSITORY_DISPATCH_TOKEN }}"
|
||||
export WORKFLOW_ID="to_be_triggered.yml"
|
||||
export RUN_ID="${{ inputs.run_id }}"
|
||||
export MAX_WAIT_MINUTES="2"
|
||||
export INTERVAL="5"
|
||||
export TIMEOUT="5"
|
||||
export ORG_NAME="kamilchodola"
|
||||
export REPO_NAME="wait-for-workflow-action"
|
||||
export REF="${{ inputs.ref || github.ref }}"
|
||||
./scripts/wait-for-workflow.sh
|
||||
uses: kamilchodola/wait-for-workflow-action@kch/fix_permissions
|
||||
with:
|
||||
GITHUB_TOKEN=${{ secrets.REPOSITORY_DISPATCH_TOKEN }}
|
||||
WORKFLOW_ID='to_be_triggered.yml'
|
||||
RUN_ID=${{ inputs.run_id }}
|
||||
MAX_WAIT_MINUTES='2'
|
||||
INTERVAL='5'
|
||||
TIMEOUT='5'
|
||||
ORG_NAME='kamilchodola'
|
||||
REPO_NAME='wait-for-workflow-action'
|
||||
REF=${{ inputs.ref || github.ref }}
|
||||
|
||||
@@ -38,10 +38,7 @@ inputs:
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Set execute permissions for script
|
||||
run: chmod +x ${{ github.action_path }}/scripts/wait-for-workflow.sh
|
||||
shell: bash
|
||||
- run: ${{ github.action_path }}/scripts/wait-for-workflow.sh
|
||||
- run: bash ./scripts/wait-for-workflow.sh
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user