Get branch name from correct environment variable

This commit is contained in:
Andreas Svanberg 2024-10-30 13:08:23 +01:00
parent 213ce70f50
commit eb4024f40e

@ -6,7 +6,7 @@ import * as exec from '@actions/exec';
import * as fs from 'fs';
async function main() {
const branchName = process.env.GITHUB_REF_NAME!;
const branchName = process.env.GITHUB_HEAD_REF!;
const repositoryName = gitea.context.repo.repo;
const owner = gitea.context.repo.owner;
const serverUrl = gitea.context.serverUrl;