name: SnapshotV2 on: issue_comment: types: - created concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: snapshot: name: Snapshot Release if: | github.event.issue.pull_request && (startsWith(github.event.comment.body, '/V2snapit') || startsWith(github.event.comment.body, '/V2snapshot-release')) runs-on: ubuntu-latest steps: - name: Enforce permission requirement uses: prince-chrismc/check-actor-permissions-action@v1 with: permission: write - name: Add initial reaction uses: peter-evans/create-or-update-comment@v2 with: comment-id: ${{ github.event.comment.id }} reactions: eyes - name: Get PR branch uses: xt0rted/pull-request-comment-branch@v1 id: comment-branch - name: Set latest commit status as pending uses: myrotvorets/set-commit-status-action@master with: sha: ${{ steps.comment-branch.outputs.head_sha }} token: ${{ secrets.GITHUB_TOKEN }} status: pending - name: Install Dependencies for @shopify/draggable-github-actions working-directory: .github/actions run: yarn install --frozen-lockfile - name: Run tsc working-directory: .github/actions run: yarn build - name: Test Action id: test-action uses: ./.github/actions/test-action with: token: ${{ secrets.GITHUB_TOKEN }} test: hello - name: Set latest commit status as ${{ job.status }} uses: myrotvorets/set-commit-status-action@master if: always() with: sha: ${{ steps.comment-branch.outputs.head_sha }} token: ${{ secrets.GITHUB_TOKEN }} status: ${{ job.status }}